<?php
class ParamComponent extends Object {

	/**
	 * Get Keyword ...
	 * @param $this->params $params
	 * @return unknown|NULL
	 */
	function getAction($params) {
		if(!empty($params['action'])) {
			return trim($params['action']);
		} 
		return null;
	}
	
	function getID($params) {
		if(!empty($params['id'])) {
			return $params['id'];			
		} else if(!empty($params['url']['id'])) {
			return $params['url']['id'];
		} else if(!empty($params['named']['id'])) {
			return $params['named']['id'];
		}
		return null;		
	}

	
}
?>
